﻿namespace DnD.UI.Controls
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;


    public class NavigatorItem
    {
        public string ID { get; set; }
        public string FullID { get { return string.IsNullOrEmpty(IDPath) ? ID : IDPath + "." + ID; } }
        public string IDPath { get; set; }
        public string Name { get; set; }
        public string ToolTip { get; set; }

        public bool LoadCollapsed { get; set; }

        public NavigatorItems Children { get; set; }

        public NavigatorItem()
        {
            LoadCollapsed = false;
            Children = new NavigatorItems();
        }

        public override string ToString()
        {
            return string.Format("{0}: {1}", FullID, Name);
        }
    }
}
